<template>
    <div>
        <el-select v-model="value" :placeholder="placeholderText" @change="selChange">
            <el-option
                    v-for="item in selData"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
            >
            </el-option>
        </el-select>
    </div>
</template>

<script>
    export default {
        name: "selectCom",
        props:['placeholderText','selData'],
        data(){
            return {
                value:''
            }
        },
        methods:{
            selChange(val){
                // console.log(val);
                this.$emit('selectVal',val)
            }
        }
    }
</script>

<style scoped>

</style>
